#include <cpp_primer.h>

using namespace std;

int main()
{
    list<int> ilist{1, 2, 3, 0, 0, 3, 0, 1, 0, 3};
    auto it = find(ilist.crbegin(), ilist.crend(), 0);

    cout << distance(it, ilist.rend()) << endl;
    // cout << distance(it, ilist.crend()) << endl;

    return 0;

}
